<template>
  <electrical-Fire
    :ismenu="false"
    @handlefullScreen="handlefullScreen"
    :fullscreen="fullscreen"
  ></electrical-Fire>
</template>
<script>
import electricalFire from "./electricalFire.vue";
import { nextTick, onMounted, reactive, ref } from "vue";
import { useRouter, useRoute } from "vue-router";
import { useStore } from "vuex";
export default {
  components: {
    electricalFire,
  },
  setup() {
    const router = useRouter();
    const store = useStore();
    const route = useRoute();
    const fullscreen = ref(route.query.fullscreen || false);
    const handlefullScreen = (fullscreen) => {
      store.commit("handleCollapse", true);
      router.push("/electricalFireIndex?fullscreen=" + fullscreen);
    };
    return { fullscreen, handlefullScreen };
  },
};
</script>
<style lang="less" scoped></style>
